import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/plugins/svgIcon.js'
import '@/plugins/ui.js'
import MainDirective from './util/directives'
import {DEVAPIADDRESS, PORDAPIADDRESS} from './util/config'
import VueCookies from 'vue-cookies'
Vue.prototype.$GLOBAL =process.env.NODE_ENV === 'production' ? {baseurl: PORDAPIADDRESS }: {baseurl: DEVAPIADDRESS}
Vue.config.productionTip = false
Vue.use(MainDirective)
Vue.use(VueCookies)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
